<%--
    Document   : formulario6
    Created on : 21/10/2011
    Author     : Karen
--%>

<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:choose>
    <c:when test="${operacion == 'nuevas'}" >
        <c:if test="${op_status == 'inicio'}">
            <jsp:forward page="FormularioProceso6.jsp"/>
        </c:if>
    </c:when>
    <c:when test="${operacion == 'incompletas'}" >
        <c:if test="${ op_status == 'inicio' }">
            <jsp:forward page="FormularioProceso6.jsp"/>
        </c:if>
    </c:when>
    <c:when test="${operacion == 'completas'}" >
        <c:if test="${ op_status == 'inicio' }">
            <jsp:forward page="FormularioProceso6.jsp"/>
        </c:if>
    </c:when>
    <c:otherwise>
        <jsp:forward page="salir.jsp"/>
    </c:otherwise>
</c:choose>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Formulario 6</title>
        <link href="css/oneColFixCtrHdr.css" rel="stylesheet" type="text/css">
        <script src="js/scripts_formularios.js" type="text/javascript"></script>
        <script src="SpryAssets/SpryDOMUtils.js" type="text/javascript"></script>
        <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
        <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
        <script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
        <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
        <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css">
        <link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css">
        <script type="text/javascript">
            var form_id = 6;
        </script>
    </head>
    <body onload="load_msg('${op_msg}')">
    <div class="container">
    <div class="header">
    <img src="img/logo_unam.jpg" alt="UNAM" name="UNAM_logo" width="80" height="92" id="UNAM_logo" style="background-color: #0066CC; display:block;" />
    <span id="span_msg_exito_guardar" class="headerspanmsg">El formulario se ha guardado correctamente</span>
    <span id="span_msg_error_guardar" class="headerspanmsg">No se pudo guardar el formulario</span>
    <span id="span_msg_exito_recupera" class="headerspanmsg">El formulario se ha recuperado correctamente</span>
    <span id="span_msg_error_recupera" class="headerspanmsg">No se pudo recuperar el formulario</span>
    <span id="span_msg_exito_actualizar" class="headerspanmsg">El formulario se ha actualizado correctamente</span>
    <span id="span_msg_error_actualizar" class="headerspanmsg">No se pudo actualizar el formulario</span>
    <ul class="navigationbar">
        <li><a href="#" onclick="jump_to(1,${empty form6.guardado ? 'false' : form6.guardado})">Formulario 1</a></li>
        <li><a href="#" onclick="jump_to(2,${empty form6.guardado ? 'false' : form6.guardado})">Formulario 2</a></li>
        <li><a href="#" onclick="jump_to(3,${empty form6.guardado ? 'false' : form6.guardado})">Formulario 3</a></li>
        <li><a href="#" onclick="jump_to(4,${empty form6.guardado ? 'false' : form6.guardado})">Formulario 4</a></li>
        <li><a href="#" onclick="jump_to(5,${empty form6.guardado ? 'false' : form6.guardado})">Formulario 5</a></li>
        <li><a href="#" onclick="jump_to(6,${empty form6.guardado ? 'false' : form6.guardado})" class = "currentform">Formulario 6</a></li>
        <li><a href="#" onclick="jump_to(7,${empty form1.guardado ? 'false' : form6.guardado})">Formulario 7</a></li>
        <li><a href="#" onclick="jump_to(8,${empty form6.guardado ? 'false' : form6.guardado})">Formulario 8</a></li>
    </ul>
    <!-- end .header -->
    </div>
    <div class="content">
    <form id="form6" name="form6" method="post" action="FormularioProceso6.jsp">
    <input type="hidden" id="nIdVisita" name="nIdVisita" value="${visita}"/>
    <h1 align="center">SOBRE ALUMNOS</h1>
    <h3 align="left">Número de médicos residentes en el curso de especialización.</h3>
    <p align="left">Número de residentes nacionales por año académico.</p>
    <div align="center">
      <table width="29%" border="1">
        <tr>
          <th width="40%" scope="col">Residentes</th>
          <th width="60%" scope="col">Número</th>
        </tr>
        <tr>
          <td><div align="center">R1</div></td>
          <td align="center"><span id="num1">
            <label for="r1"></label>
            <input type="text" name="nR1Nac" id="nR1Nac" value="${form6.nR1Nac}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
        </tr>
        <tr>
          <td><div align="center">R2</div></td>
          <td align="center"><span id="num2">
            <label for="r2"></label>
            <input type="text" name="nR2Nac" id="nR2Nac" value="${form6.nR2Nac}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
        </tr>
        <tr>
          <td><div align="center">R3</div></td>
          <td align="center"><span id="num3">
            <label for="r2"></label>
            <input type="text" name="nR3Nac" id="nR3Nac" value="${form6.nR3Nac}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
        </tr>
        <tr>
          <td><div align="center">R4</div></td>
          <td align="center"><span id="num4">
            <label for="r2"></label>
            <input type="text" name="nR4Nac" id="nR4Nac" value="${form6.nR4Nac}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
        </tr>
        <tr>
          <td><div align="center">R5</div></td>
          <td align="center"><span id="num5">
            <label for="r2"></label>
            <input type="text" name="nR5Nac" id="nR5Nac" value="${form6.nR5Nac}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
        </tr>
        <tr>
          <td><div align="center">R6</div></td>
          <td align="center"><span id="num6">
            <label for="r2"></label>
            <input type="text" name="nR6Nac" id="nR6Nac" value="${form6.nR6Nac}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
        </tr>
        <tr>
          <td><div align="center">Otros</div></td>
          <td align="center"><span id="num7">
            <label for="r2"></label>
            <input type="text" name="nOtrosNac" id="nOtorsNac" value="${form6.nOtrosNac}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
        </tr>
        <tr>
          <td><strong>TOTAL</strong></td>
          <td align="center"><input name="nTotalNac" type="text" id="nTotalNac" value="${form6.nTotalNac}" readonly/></td>
        </tr>
      </table>
    </div>
<hr>
    <p align="left">Número de residentes extranjeros por año académico.</p>
    <div align="center">
      <table width="29%" border="1">
        <tr>
          <th width="42%" scope="col">Residentes</th>
          <th width="58%" scope="col">Número</th>
        </tr>
        <tr>
          <td><div align="center">R1</div></td>
          <td align="center"><span id="num8">
            <label for="r1"></label>
            <span class="textfieldInvalidFormatMsg">Solo números.</span><span id="num15">
              <label for="r2"></label>
              <input type="text" name="nR1Ex" id="nR1Ex" value="${form6.nR1Ex}"/>
              <span class="textfieldInvalidFormatMsg">Solo números.</span></span></span></td>
  </tr>
        <tr>
          <td><div align="center">R2</div></td>
          <td align="center"><span id="num9">
            <label for="r2"></label>
            <span class="textfieldInvalidFormatMsg">Solo números.</span><span id="num16">
              <label for="r2"></label>
              <input type="text" name="nR2Ex" id="nR2Ex" value="${form6.nR2Ex}"/>
              <span class="textfieldInvalidFormatMsg">Solo números.</span></span></span></td>
  </tr>
        <tr>
          <td><div align="center">R3</div></td>
          <td align="center"><span id="num10">
            <label for="r2"></label>
            <span class="textfieldInvalidFormatMsg">Solo números.</span><span id="num17">
              <label for="r2"></label>
              <input type="text" name="nR3Ex" id="nR3Ex" value="${form6.nR3Ex}"/>
              <span class="textfieldInvalidFormatMsg">Solo números.</span></span></span></td>
  </tr>
        <tr>
          <td><div align="center">R4</div></td>
          <td align="center"><span id="num11">
            <label for="r2"></label>
            <span class="textfieldInvalidFormatMsg">Solo números.</span><span id="num18">
              <label for="r2"></label>
              <input type="text" name="nR4Ex" id="nR4Ex" value="${form6.nR4Ex}"/>
              <span class="textfieldInvalidFormatMsg">Solo números.</span></span></span></td>
  </tr>
        <tr>
          <td><div align="center">R5</div></td>
          <td align="center"><span id="num12">
            <label for="r2"></label>
            <span class="textfieldInvalidFormatMsg">Solo números.</span><span id="num19">
              <label for="r2"></label>
              <input type="text" name="nR5Ex" id="nR5Ex" value="${form6.nR5Ex}"/>
              <span class="textfieldInvalidFormatMsg">Solo números.</span></span></span></td>
  </tr>
        <tr>
          <td><div align="center">R6</div></td>
          <td align="center"><span id="num13">
            <label for="r2"></label>
            <span class="textfieldInvalidFormatMsg">Solo números.</span><span id="num20">
              <label for="r2"></label>
              <input type="text" name="nR6Ex" id="nR6Ex" value="${form6.nR6Ex}"/>
              <span class="textfieldInvalidFormatMsg">Solo números.</span></span></span></td>
  </tr>
        <tr>
          <td><div align="center">Otros</div></td>
          <td align="center"><span id="num14">
            <label for="r2"></label>
            <span class="textfieldInvalidFormatMsg">Solo números.</span><span id="num21">
              <label for="r2"></label>
              <input type="text" name="nOtrosEx" id="nOtrosEx" value="${form6.nOtrosEx}"/>
              <span class="textfieldInvalidFormatMsg">Solo números.</span></span></span></td>
  </tr>
        <tr>
          <td><strong>TOTAL</strong></td>
          <td align="center"><input name="nTotalEx" type="text" id="nTotalEx" value="${form6.nTotalEx}" readonly/></td>
        </tr>
      </table>
    </div>
    <hr>
    <p>Tipo de institución que financia las becas de los residentes.</p>
    <div align="center">
      <table width="67%" border="1">
        <tr>
          <th scope="col">Alumnos</th>
          <th scope="col">Institución</th>
          <th scope="col">Número de Becas</th>
        </tr>
        <tr>
          <td>Nacionales</td>
          <td align="center"><label for="tipo"></label>
            <select name="sBecasInstitucionNacionales" id="sBecasInstitucionNacionales">
              <option value="Sin valor" selected ${form6.sBecasInstitucionNacionales == 'Sin valor' ? "selected='selected'" : ""}></option>
              <option value="Estatal" ${form6.sBecasInstitucionNacionales == 'Estatal' ? "selected='selected'" : ""}>Estatal</option>
              <option value="Paraestatal" ${form6.sBecasInstitucionNacionales == 'Paraestatal' ? "selected='selected'" : ""}>Paraestatal</option>
              <option value="Privada" ${form6.sBecasInstitucionNacionales == 'Privada' ? "selected='selected'" : ""}>Privada</option>
            </select></td>
          <td align="center"><span id="nac">
            <label for="numbn"></label>
            <input type="text" name="nNumeroBecasNacionales" id="nNumeroBecasNacionales" value="${form6.nNumeroBecasNacionales}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
  </tr>
        <tr>
          <td>Extranjeros</td>
          <td align="center"><select name="sBecasInstitucionExtranjeros" id="sBecasInstitucionExtranjeros" >
            <option value="Sin valor" selected ${form6.sBecasInstitucionExtranjeros == 'Sin valor' ? "selected='selected'" : ""}></option>
            <option value="Estatal" ${form6.sBecasInstitucionExtranjeros == 'Estatal' ? "selected='selected'" : ""}>Estatal</option>
            <option value="Paraestatal" ${form6.sBecasInstitucionExtranjeros == 'Paraestatal' ? "selected='selected'" : ""}>Paraestatal</option>
            <option value="Privada" ${form6.sBecasInstitucionExtranjeros == 'Privada' ? "selected='selected'" : ""}>Privada</option>
          </select></td>
          <td align="center"><span id="ext">
            <label for="numbe"></label>
            <input type="text" name="nNumeroBecasExtranjeros" id="nNumeroBecasExtranjeros" value="${form6.nNumeroBecasExtranjeros}"/>
            <span class="textfieldInvalidFormatMsg">Solo números.</span></span></td>
  </tr>
      </table>
    </div>
    <hr>
    <p>
        <input type="submit" name="guardar" id="guardar" value="Guardar" onclick="return guardar_form(form_id)"/>
        <input type="button" name="regresar" id="regresar" value="Regresar" onclick="regresa(form_id,${empty form6.guardado ? 'false' : form6.guardado})"/>
        <input type="button" name="siguiente" id="siguiente" value="Siguiente" onclick="sigue(form_id,${empty form6.guardado ? 'false' : form6.guardado})"/>
        <input type="button" name="salir" id="salir" value="Salir" onclick="cerrar_sesion(${empty form6.guardado ? 'false' : form6.guardado})"/>
    </p>
    </form>
    <!-- end .content -->
    </div>
    <div class="footer">
        <p>Soft-Express</p>
    <!-- end .footer -->
    </div>
    <!-- end .container -->
    <script type="text/javascript">
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num15", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield4 = new Spry.Widget.ValidationTextField("ext", "integer", {isRequired:false, validateOn:["blur", "change"]});
        var sprytextfield3 = new Spry.Widget.ValidationTextField("nac", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num21", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num20", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num19", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num18", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num17", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num16", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num7", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num6", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num5", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num4", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num3", "integer", {validateOn:["blur", "change"], isRequired:false});
        var sprytextfield1 = new Spry.Widget.ValidationTextField("num1", "integer", {isRequired:false, validateOn:["blur", "change"]});
        var sprytextfield2 = new Spry.Widget.ValidationTextField("num2", "integer", {validateOn:["blur", "change"], isRequired:false});
    </script>
    </body>
</html>
